<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MasterPage.Master" Inherits="System.Web.Mvc.ViewPage<Animoso.Domain.Page>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Nieuwe Pagina</h2>

    <%= Html.ValidationSummary("Toevoegen nieuwe pagina mislukt, probeer de fouten te herstellen") %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>Pagina</legend>
            <p>
                <label for="Title">Title:</label><br />
                <%= Html.TextBox("Title", "", new Dictionary<string, object> { { "size", 65 } })%>
                <%= Html.ValidationMessage("Title", "*") %>
            </p>
            <p>
                <label for="Text">Text:</label><br />
                <%= Html.TextArea("Text","",14,60,null)%>
                <%= Html.ValidationMessage("Text", "*") %>
            </p>
            
            <p>
                <%= Html.Hidden("Id") %>
                <input type="submit" value="Toevoegen" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

